package com.ruoyi.gbase.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * link中信息对象 DB_ALLTABLES
 * 
 * @author yys
 * @date 2020-06-30
 */
public class DbAlltables extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "主键ID")
    private Integer id;

    /** linkid */
    @Excel(name = "linkid")
    private Integer dblinkid;

    /** schema */
    @Excel(name = "schema")
    private String tabschema;

    /** 表名 */
    @Excel(name = "表名")
    private String tabname;

    /** 表序号 */
    @Excel(name = "表序号")
    private Integer tablexh;

    /** 列数 */
    @Excel(name = "列数")
    private Integer colcount;

    /** 主键数量 */
    @Excel(name = "主键数量")
    private Integer keycolumns;

    /** 行数 */
    @Excel(name = "行数")
    private Integer card;

    /** 有效页数 */
    @Excel(name = "有效页数")
    private Integer npages;

    /** 总页数 */
    @Excel(name = "总页数")
    private Integer fpages;

    /** 占用空间 */
    @Excel(name = "占用空间")
    private BigDecimal howmouch;

    /** 表空间 */
    @Excel(name = "表空间")
    private String tbspace;

    /** 表中文备注 */
    @Excel(name = "表中文备注")
    private String remarks;

    /** 创建人 */
    @Excel(name = "创建人")
    private String definer;

    /** 修改日期 */
    @Excel(name = "修改日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date alterTime;

    /** 最近一次重组时间 */
    @Excel(name = "最近一次重组时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastRegenTime;

    /** 备份数量 */
    @Excel(name = "备份数量")
    private Integer backnum;

    /** 表自定义备注-关联出来的 */
    @Excel(name = "表自定义备注")
    private String notes;

    /** ip地址 -关联冗余使用 */
    @Excel(name = "ip地址")
    private String ip;

    /** 数据库名称 -关联冗余使用 */
    @Excel(name = "数据库名称")
    private String dbName;

    /** 显示值 -非数据库 */
    @Excel(name = "显示值")
    private String show;

    /** 还原新表名称 -非数据库  */
    @Excel(name = "还原新表名称")
    private String tbNewname;

    /** 全路径 -非数据库  */
    @Excel(name = "全路径")
    private String fileUrl;

    /** 是否存在备份 -非数据库  */
    @Excel(name = "是否存在备份")
    private Integer hasBack;

    /** 批量备份时候选择用显示值 -非数据库  */
    @Excel(name = "批量备份时候选择用显示值")
    private String showMany;

    @Excel(name = "批量备份时筛选行数")
    private Integer rowNumber;

    /** 批量备份中用-非数据库  */
    @Excel(name = "批量备份中用，是否已经在备份中")
    private Integer isHas;


    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dblinkid", getDblinkid())
            .append("tabschema", getTabschema())
            .append("tabname", getTabname())
            .append("tablexh", getTablexh())
            .append("colcount", getColcount())
            .append("keycolumns", getKeycolumns())
            .append("card", getCard())
            .append("npages", getNpages())
            .append("fpages", getFpages())
            .append("howmouch", getHowmouch())
            .append("tbspace", getTbspace())
            .append("remarks", getRemarks())
            .append("definer", getDefiner())
            .append("createTime", getCreateTime())
            .append("alterTime", getAlterTime())
            .append("lastRegenTime", getLastRegenTime())
                .append("backnum", getBacknum())
            .toString();
    }

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setDblinkid(Integer dblinkid) 
    {
        this.dblinkid = dblinkid;
    }

    public Integer getDblinkid() 
    {
        return dblinkid;
    }

    public void setTabschema(String tabschema) 
    {
        this.tabschema = tabschema;
    }

    public String getTabschema() 
    {
        return tabschema;
    }

    public void setTabname(String tabname) 
    {
        this.tabname = tabname;
    }

    public String getTabname() 
    {
        return tabname;
    }

    public void setTablexh(Integer tablexh) 
    {
        this.tablexh = tablexh;
    }

    public Integer getTablexh() 
    {
        return tablexh;
    }

    public void setColcount(Integer colcount) 
    {
        this.colcount = colcount;
    }

    public Integer getColcount() 
    {
        return colcount;
    }

    public void setKeycolumns(Integer keycolumns) 
    {
        this.keycolumns = keycolumns;
    }

    public Integer getKeycolumns() 
    {
        return keycolumns;
    }

    public void setCard(Integer card) 
    {
        this.card = card;
    }

    public Integer getCard() 
    {
        return card;
    }

    public void setNpages(Integer npages) 
    {
        this.npages = npages;
    }

    public Integer getNpages() 
    {
        return npages;
    }

    public void setFpages(Integer fpages) 
    {
        this.fpages = fpages;
    }

    public Integer getFpages() 
    {
        return fpages;
    }

    public void setHowmouch(BigDecimal howmouch) 
    {
        this.howmouch = howmouch;
    }

    public BigDecimal getHowmouch() 
    {
        return howmouch;
    }

    public void setTbspace(String tbspace) 
    {
        this.tbspace = tbspace;
    }

    public String getTbspace() 
    {
        return tbspace;
    }

    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public void setDefiner(String definer) 
    {
        this.definer = definer;
    }

    public String getDefiner() 
    {
        return definer;
    }

    public void setAlterTime(Date alterTime) 
    {
        this.alterTime = alterTime;
    }

    public Date getAlterTime() 
    {
        return alterTime;
    }

    public void setLastRegenTime(Date lastRegenTime) 
    {
        this.lastRegenTime = lastRegenTime;
    }

    public Date getLastRegenTime() 
    {
        return lastRegenTime;
    }

    public void setBacknum(Integer backnum) 
    {
        this.backnum = backnum;
    }

    public Integer getBacknum() 
    {
        return backnum;
    }

    public void setNotes(String notes)
    {
        this.notes = notes;
    }

    public String getNotes()
    {
        return notes;
    }

    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getIp()
    {
        return ip;
    }

    public void setDbName(String dbName)
    {
        this.dbName = dbName;
    }

    public String getDbName()
    {
        return dbName;
    }

    public void setShow(String show)
    {
        this.show = show;
    }

    public String getShow()
    {
        return show;
    }

    public void setTbNewname(String tbNewname)
    {
        this.tbNewname = tbNewname;
    }

    public String getTbNewname()
    {
        return tbNewname;
    }

    public void setFileUrl(String fileUrl)
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl()
    {
        return fileUrl;
    }

    public void setHasBack(Integer hasBack)
    {
        this.hasBack = hasBack;
    }

    public Integer getHasBack()
    {
        return hasBack;
    }

    public void setShowMany(String showMany)
    {
        this.showMany = showMany;
    }

    public String getShowMany()
    {
        return showMany;
    }

    public void setRowNumber(Integer rowNumber)
    {
        this.rowNumber = rowNumber;
    }

    public Integer getRowNumber()
    {
        return rowNumber;
    }

    public void setIsHas(Integer isHas)
    {
        this.isHas = isHas;
    }

    public Integer getIsHas()
    {
        return isHas;
    }
}
